import request from '@/utils/request'

export default {
  list() {
    return request.post('/teacher/list')
  },
  page(params) {
    return request.post('/teacher/page', params)
  },

  add(data) {
    return request.post('/teacher/add', data)
  },

  edit(data) {
    return request.post('/teacher/edit', data)
  },

  delete(id) {
    return request.post('/teacher/delete', { id })
  },
  count_course(searchKeywords) {
    return request.post('/teacher/count-course', searchKeywords)
  },
  course_list(searchKeywords) {
    return request.post('/teacher/course-list', searchKeywords)
  }
}
